package com.lvwenguo.activemq;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

/**
 * @Author lvwenguo
 * @Date 2021/3/27 10:35
 * @Version 1.0
 */
@Component
public class TopicConsumer {
    @JmsListener(destination = "news.topic")
    public void receive1(String mq) {
        System.out.println("1号:"+mq);
    }

}
